<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/" %>"/>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0"> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LoginIndex</title>
<!--<script type="text/javascript" src=""></script><link href="" type="text/css" rel="stylesheet" />-->
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Custom Theme files -->

<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />

<!-- //Custom Theme files -->
<!-- web font -->
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'><!--web font-->

<!-- //web font -->
</head>

<script type="text/javascript">
function userCheck() {
	if (document.form1.studentnumber.value == ""||!(document.form1.studentnumber.value.length == 10)) {
		window.alert("学号输入有误！");
		return false;
	}
	if (document.form1.password.value == "") {
		window.alert("请输入用户密码！");
		return false;
	}

    return true;
}
    </script>
<body>

	<!-- main -->
	<div class="main"> 
<!-- 		<h1>Student Login</h1> -->
				
		<div class="login-form"> 
			<h2 >SignIn Form</h2> 
			<div class="agileits-top">
				<form action="#" method="post" name="form1" 
				       onsubmit="return userCheck()">
				       <input type="hidden" name="action" value="add" />
					<div class="styled-input">
						<input type="text" name="studentnumber" id="studentnumber" maxlength='10' required="" />
						<label style="font-weight: bolder;">Studentnumber</label>
						<span></span>
					</div>
					<div class="styled-input">
						<input type="password" name="password" id="password" required="" > 
						<label style="font-weight: bolder;">Password</label>
						<span></span>
					</div> 
					<div class="wthree-text"> 
						<ul> 
<!-- 							<li> -->
<!-- 								<input type="checkbox" id="brand" value="studentnumber"> -->
<!-- 								<label for="brand"><span></span> Remember me ?</label>   -->
<!-- 							</li> -->
							<li> <a href="ForgetPassword.jsp">Forgot password?</a> </li>
						</ul>
						<div class="clear"> </div>
					</div>  
				</form>
			</div>
			<div class="agileits-bottom">
				<form action="Login" method="post" name="btn1" 
				       onsubmit="return userCheck()">
					<input type="submit" value="Sign In">
				</form>
			</div>	
		</div>	
	</div>	
	<!-- //main -->
</body>
</html>